package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 菜单
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpMenu extends Model<JbdpMenu> {

    private static final long serialVersionUID=1L;

    /**
     * 菜单ID
     */
    @TableId("MENU_ID")
    private String menuId;

    /**
     * 系统代码
     */
    @TableField("APP_CODE")
    private String appCode;

    /**
     * 菜单代码
     */
    @TableField("MENU_CODE")
    private String menuCode;

    /**
     * 菜单名称
     */
    @TableField("MENU_NAME")
    private String menuName;

    /**
     * 菜单URL
     */
    @TableField("URL")
    private String url;

    /**
     * 图标
     */
    @TableField("ICON")
    private String icon;

    /**
     * 状态
     */
    @TableField("STATE")
    private Integer state;

    /**
     * 排序
     */
    @TableField("ORDER_NO")
    private Integer orderNo;

    /**
     * 打开方式
     */
    @TableField("TAGET")
    private String taget;

    /**
     * 是否显示
     */
    @TableField("SHOW_FLAG")
    private Integer showFlag;


    public String getMenuId() {
        return menuId;
    }

    public JbdpMenu setMenuId(String menuId) {
        this.menuId = menuId;
        return this;
    }

    public String getAppCode() {
        return appCode;
    }

    public JbdpMenu setAppCode(String appCode) {
        this.appCode = appCode;
        return this;
    }

    public String getMenuCode() {
        return menuCode;
    }

    public JbdpMenu setMenuCode(String menuCode) {
        this.menuCode = menuCode;
        return this;
    }

    public String getMenuName() {
        return menuName;
    }

    public JbdpMenu setMenuName(String menuName) {
        this.menuName = menuName;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public JbdpMenu setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getIcon() {
        return icon;
    }

    public JbdpMenu setIcon(String icon) {
        this.icon = icon;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public JbdpMenu setState(Integer state) {
        this.state = state;
        return this;
    }

    public Integer getOrderNo() {
        return orderNo;
    }

    public JbdpMenu setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
        return this;
    }

    public String getTaget() {
        return taget;
    }

    public JbdpMenu setTaget(String taget) {
        this.taget = taget;
        return this;
    }

    public Integer getShowFlag() {
        return showFlag;
    }

    public JbdpMenu setShowFlag(Integer showFlag) {
        this.showFlag = showFlag;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.menuId;
    }

    @Override
    public String toString() {
        return "JbdpMenu{" +
        "menuId=" + menuId +
        ", appCode=" + appCode +
        ", menuCode=" + menuCode +
        ", menuName=" + menuName +
        ", url=" + url +
        ", icon=" + icon +
        ", state=" + state +
        ", orderNo=" + orderNo +
        ", taget=" + taget +
        ", showFlag=" + showFlag +
        "}";
    }
}
